package cn.tedu.service;

import cn.tedu.dao.CarDao;
import cn.tedu.pojo.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class CarSeviceImpl implements CarService{
    @Resource
    private CarDao carDao;
    public List<Car> gettest(){
       return carDao.gettest();
    }

    @Override
    public Car getId(Integer id) {
        return carDao.getId(id);
    }


}
